package rmaqlc31.basic;

import java.util.Scanner;

public class J03_Lotto {

	public static void main(String[] args) {
		
		
		Scanner sc = null;
		int yourkey;
		int lottokey;
		final String A = "상금 1백만원 지급";
		final String B = "아쉽지만 다음기회에!";
		final String C = "잘못된 숫자 입니다";
		
		
		lottokey = 123;		// 나중에 자동 난수 생성
		
		
		sc = new Scanner(System.in);
		
		System.out.println("복권 3자리 숫자를 입력하세요 : ");
	    yourkey = sc.nextInt();		// 정수를 직접 입력받음
	    
	    
	    
	    sc.close();
		
		if(yourkey>=100&&yourkey<=999&&yourkey==lottokey){System.out.println(A);}
		else if(yourkey>=100&&yourkey<=999&&yourkey!=lottokey){System.out.println(B);}
		else{System.out.println(C);}
	    
		
		
		
	    
		
		

	}

}
